import { DashboardIcon, HomeIcon, ServerIcon, LogoWindowsIcon, FilePasteIcon, SecuredIcon } from 'tdesign-icons-vue';
import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/risk-assessment',
    component: Layout,
    redirect: '/risk-assessment/base',
    name: 'riskAssessment',
    meta: {
      title: '风险评估',
      icon: DashboardIcon,
      routeType: 'risk',
    },
    children: [
      {
        path: 'base',
        name: 'riskAssessmentBase',
        component: () => import('@/pages/risk-assessment/base/index.vue'),
        meta: { title: '概览', icon: HomeIcon, routeType: 'risk' },
      },
      {
        path: 'management',
        name: 'riskAssessmentManagement',
        component: () => import('@/pages/risk-assessment/management/index.vue'),
        meta: { title: '评估管理', icon: ServerIcon, routeType: 'risk' },
      },
      {
        path: 'governance',
        name: 'riskAssessmentGovernance',
        component: () => import('@/pages/risk-assessment/governance/index.vue'),
        meta: { title: '风险治理', icon: SecuredIcon, routeType: 'risk' },
      },
      {
        path: 'report',
        name: 'riskAssessmentReport',
        component: () => import('@/pages/risk-assessment/report/index.vue'),
        meta: { title: '评估报告', icon: FilePasteIcon, routeType: 'risk' },
      },
      {
        path: 'template',
        name: 'riskAssessmentTemplate',
        component: () => import('@/pages/risk-assessment/template/index.vue'),
        meta: { title: '评估模板', icon: LogoWindowsIcon, routeType: 'risk' },
      },
      {
        path: 'template/create',
        name: 'riskAssessmentTemplateCreate',
        component: () => import('@/pages/risk-assessment/template/create.vue'),
        meta: { routeType: 'risk' },
      },
      {
        path: 'management/start',
        name: 'riskAssessmentManagementStart',
        component: () => import('@/pages/risk-assessment/management/start.vue'),
        meta: { routeType: 'risk' },
      },
      {
        path: 'management/answer',
        name: 'riskAssessmentManagementAnswer',
        component: () => import('@/pages/risk-assessment/management/answer.vue'),
        meta: { routeType: 'risk' },
      },
      {
        path: 'governance/procedure',
        name: 'GovernanceProcedure',
        component: () => import('@/pages/risk-assessment/governance/governance-procedure.vue'),
        meta: { routeType: 'risk' },
      },
    ],
  },
];

export const routes = 1;
